<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
		<meta name="format-detection" content="telephone=no" />
		<meta http-equiv="x-rim-auto-match" content="none" />
		<title>联系我们</title>
		<link rel="stylesheet" type="text/css" href="../css/public.css" />
		<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css" />
		<style type="text/css">
			body,
			html {
				width: 100%;
				height: 100%;
				margin: 0;
				padding: 0;
				font-size: 18px;
			}
			
			#app {
				margin: 0;
				padding: 1rem 0.3rem;
				display: none;
			}
			
			h4 {
				color: red;
				display: block;
				margin: 0 auto;
			}
		</style>
	</head>

	<body>
		<div id="app" v-if="ishtml">
			<form class="form-horizontal" role="form">
				<h4>如果您在使用中有任何问题，请按以下方式联系我们的工作人员！</h4>
				<div style="margin-top: .5rem;" class="form-group">
					<label class="col-sm-2 control-label">联系电话</label>
					<div class="col-sm-10">
						<p class="form-control-static">15309259624</p>
					</div>
				</div>
				<div class="form-group">
					<label for="inputPassword" class="col-sm-2 control-label">QQ号码:</label>
					<div class="col-sm-10">
						<p class="form-control-static">910957247</p>
					</div>
				</div>
				<h4 style="margin-top: 1rem;">成绩查询方面问题</h4>
				<div style="margin-top: .5rem;" class="form-group">
					<label class="col-sm-2 control-label">郝老师</label>
					<div class="col-sm-10">
						<p class="form-control-static">13636836921</p>
					</div>
				</div>
			</form>
		</div>
	</body>

</html>
<script src="../js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/common.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/public.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>

<script>
	new Vue({
		el: '#app',
		data: {
			id_card: "",
			ishtml: false,
			version: ''
		},
		mounted: function() {

		},
		created: function() {
			this.id_card = getUrlParam('SFZ');
			this.version = getUrlParam('version');			
			if(this.version !='new') {
				$("#app").show();
				this.ishtml = true;
			} else {
				if(this.id_card == null || this.id_card == '') {
					$("#app").show();
					this.ishtml = true;
				} else {
					$("#app").hide();
					this.ishtml = false;
					this.open_az('');
				}
			}
		},
		methods: {
			open_az: function(data) {
				//判断操作系统
				var u = navigator.userAgent,
					app = navigator.appVersion;
				var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
				var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端				
				if(isAndroid) {
					//这个是安卓操作系统
					//js调用app方法  	window.Android是调用Android方法。
					window.Android.go_feedback(data); //				
				}
				if(isIOS) {　　　　 //这个是ios操作系统
//					window.webkit.messageHandlers.go_feedback();
					//send message to native
				
					window.webkit.messageHandlers.iosCall.postMessage({
						parameter: data, //传递给ios的参数
						callBackResult: "go_feedback" //ios方法回调名字
					});
				}
			},
		}
	})
</script>